package com.qd.pay.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 * @author sjk
 */
@Data
@Accessors(chain = true)
public class OrderBodyDTO {

    /*
     * 订单
     */
    public static final String ORDER_TYPE_ORDER = "order";
    /*
     * 回执
     */
    public static final String ORDER_TYPE_ORDER_REPORT = "order_report";
    /*
     * 退款
     */
    public static final String ORDER_TYPE_ORDER_REFUND = "order_refund";
    /**
     * 退款回执
     */
    public static final String ORDER_TYPE_ORDER_REFUND_REPORT = "order_refund_report";
    /*
     * 关闭订单
     */
    public static final String ORDER_TYPE_ORDER_CLOSE = "order_close";

    private String id;

    private String bid;

    private String content;

    private String type;

    private LocalDateTime addTime;

    public void freeData() {
        this.id = null;
        this.bid = null;
        this.content = null;
        this.type = null;
        this.addTime = null;
    }
}
